package com.banshou.installs.utils;

import android.widget.Toast;

import com.banshou.installs.constant.BaseApplication;

/**
 * Created by cjq on 2018/1/2.
 * Email: stoic_yb@139.com
 * features:
 */

public class ToastUtil {

    private static Toast toast;

    public static void toast(String msg){
        if(toast == null){
            toast = Toast.makeText(BaseApplication.getContext(),msg,Toast.LENGTH_SHORT);
        }else{
            toast.setText(msg);
        }
        toast.show();
    }
}
